package com.naizhuai.network.apistore;

import com.naizhuai.network.Config;
import com.naizhuai.network.entity.ResultResponse;
import com.naizhuai.ui.entity.MainPage;
import com.naizhuai.ui.entity.RecommendScheme;
import com.naizhuai.ui.entity.StartUp;
import com.naizhuai.ui.entity.User.MainPageRedPoint;
import com.naizhuai.ui.entity.User.UserNews;

import java.util.List;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * @author：lichenxi
 * @date 2018/5/4 11
 * email：525603977@qq.com
 * Fighting
 */
public interface CommonManagerRequest {

    @GET(Config.main_page)
    Observable<ResultResponse<MainPage>> getMainPage();
    @GET(Config.recommend_scheme)
    Observable<ResultResponse<List<RecommendScheme>>> getRecommendScheme(@Query("page") int page);

    @GET(Config.start_up)
    Observable<ResultResponse<StartUp>> getStartUp();

    @POST(Config.user_report)
    @FormUrlEncoded
    Observable<ResultResponse<String>> user_report(@Field("jid")String jid,@Field("type")String type);

    @GET(Config.article_list)
    Observable<ResultResponse<List<UserNews>>> article_list();

    @GET(Config.red_point)
    Observable<ResultResponse<MainPageRedPoint>> red_point();

}
